package com.user.model.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * @author za-wujiajia
 * @Description: 用户角色关联关系实体类
 * @create 2019-04-04 21:54
 * @last modify by [za-wujiajia 2019-04-04 21:54]
 **/

@Data
@Entity
@Table(name = "SYS_USER_ROLE")
public class UserRole {
    /**
     *  主键ID
     */
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    @Column(name = "id")
    private String id;
    /**
     * 角色id
     */
    private String roleId;
    /**
     * 用户ID
     */
    private String userId;

}
